Hacker News new | ask | show | jobs
by Djehngo 4537 days ago
That's a shame, I happen to like the use of sigils to denote pointer types, to my eyes it makes code a lot easier to read.

Out of curiosity why are they making the change? And will they add the `let x = box Thing` syntax or as an optional addition to the language or will it fully replace the old `let = ~Thing` syntax?

1 comments

I think the idea is to make heap allocation taxing to type. Basically the sigil is too easy to type, so its easy for application to just allocates a whup ass of memory. So, this way it might force you to think about each allocation.