Wait really? That is pretty impressive for a 13 year old. I'd say pretty impressive even for some one in their teens (even doing a toy language following the Stanford pl courses online is no easy feat!!).
Notably absent (at least in the docs) is a Hash/Map datatype, a struct type may be beyond the goals of the language. I do see how it straddles Python and TypeScript in character. One thing I miss from TypeScript is the Union/Sum type which is far underutilized in languages.
Inspired by Python? Like they overheard someone talking about Python before they implemented some feature? all I see are "{", "}", and ";" everywhere ;-)
`init`, `self`, the comment syntax, `and`, `or`, and the import syntax are all pretty clearly python-inspired, to name a few. "Curly braces or no curly braces" is not the only syntax decision a language has to make.
There's obviously a lot more inspiration from typescript, but they do list python second in the title, so that's fair.
[+] [-] tylermenezes|4 years ago|reply
[+] [-] flashgordon|4 years ago|reply
[+] [-] hn_throwaway_99|4 years ago|reply
[+] [-] slater|4 years ago|reply
https://plebussupremus1234.github.io/LemonScript/
[+] [-] karmakaze|4 years ago|reply
[+] [-] maweki|4 years ago|reply
Look at Haskell's faux union Either. It should be true that Either a a = a but of course, it isn't and you always have to destructure this.
In inference it's easier to just infer one most general type instead of a (possibly infinite) number of sets of types.
Basicaly wherever types are ambiguous, you'd need to try all alternatives and possibly compile all of them.
Faux unions are also underused but we do find them from time to time.
[+] [-] stefanos82|4 years ago|reply
http://www.lemon-lang.org/documentation
[+] [-] zfxfr|4 years ago|reply
[+] [-] JDeArte|4 years ago|reply
[+] [-] lolinder|4 years ago|reply
There's obviously a lot more inspiration from typescript, but they do list python second in the title, so that's fair.
[+] [-] nhumrich|4 years ago|reply
[+] [-] masswerk|4 years ago|reply
(I still think that AS3 type hints were a viable approach.)
[+] [-] ianberdin|4 years ago|reply