News for hackers. Stuff that matters.
Re:Toit – A Language Designed for Microcontrollers by extinctpotato on Wednesday June 08, 2022 @03:45PM (#31672967)
It feels very Ruby-like. In fact, it makes me wonder why not reuse Ruby's syntax if you're making a thing like that.
Re:Toit – A Language Designed for Microcontrollers by ErikCorry on Thursday June 09, 2022 @03:47AM (#31678605)
Toit and Ruby are both inspired by Smalltalk, and there are certainly similarities in the syntax but we felt that starting 20 years later we could do a lot better than Ruby syntax.

In particular, Python basically won the significant-indentation argument. Since all programs are formatted with correct indentation the punctuation is redundant clutter. So for a new language it just feels right to go with indentation instead of curlies.

We also wanted to be free to add type annotations and other enhancements, so it was never going to be compatible with Ruby anyway. And we didn't want to raise expectations of Ruby-compatibility that would immediately be dashed.

Re:Toit – A Language Designed for Microcontrollers by ricardobeat on Wednesday June 08, 2022 @06:22PM (#31675152)