3 ms·
Alternatively, where the semantics are different to existing languages, try to make the syntax different too. Languages which look the same as existing ones and
by JonChesterfield 3y ago
Alternatively, where the semantics are different to existing languages, try to make the syntax different too. Languages which look the same as existing ones and behave differently are pretty rough going for newcomers and anyone programming in multiple languages.
- andrewstuart 3y agoI probably should have said "did you really need the syntax and the behavior to be different?" My point is not so much about syntax, it is about unnecessarily doing things in a conceptually different way. If different behavior at a given point is core to what makes your language special then sure thing, make it behave different, but implementing some different behavior without a significant payoff only makes your new language harder to grasp. Presumably you are making a language because you have some core concepts or beliefs you want to bring to life - all I'm saying is - make that happen, and make the rest as familiar as possible for most programmers.
- macintux 3y agoOne reason I prefer Erlang to Elixir is that I appreciate the fact that Erlang syntax is very different, and I feel like it helps me think in Erlang. I don’t think about Python or Ruby.