Oscar Campbell
Oscar Campbell
# Functions / Methods **Note: See https://github.com/ozra/onyx-lang/issues/11#issuecomment-217818212 for latest RFC suggestion**! This is a staple construct of any language, and as such I believe there will be some opinions on...
This is the only (?!) missing feature in Onyx atm, and the culprit is syntax (and a whoooole lot of coding). ## Syntax While indent-significant layout is ultimately apt for...
When making a lookup for method matching arguments, if none is found, and there are candidates with explicitly typed args that are enums, the args will be looked up in...
The importance of this tool as integral to the development experience in Onyx has been there since the inception. About time it's issued. The purpose of the stylizer is just...
# Conditional Branching Constructs ## If / elif / elsif / else The familiar branching construct needs no introduction, except that it can be used as an expression too (as...
# Defining Types Before anything else, let's show case what some code currently looks like, to pitch your sensation whether it's intuitive without formal explanation. Then we'll take it from...
For many cases where callbacks are used in some languages, it's common in baselib to require visitor(-like) instances instead. A Visitor instance has several pros to simple callbacks: "pattern match"...
Some examples brought up by @stugol: λ, ≠, ≤ and ≥. This is a definite go! The "grander idea" I've held since the beginning for Onyx is to: - Support...
# Nil Handling Sugar This is strongly wanted. I was inspired by LiveScript, Swift has it too, etc. The gotcha is crystal compatibility which is desirable to maintain, because of...
# Multiple Assignment Currently multiple assignment is implemented in Onyx like this: ``` onyx [a, b, c, d] = [1, 2, 3, 4] -- => a=1,b=2,c=3,d=4 [a, c, b, d]...