News for hackers. Stuff that matters.
Re:The Use of assert() in SQLite by yawboakye on Saturday April 27, 2019 @05:17AM (#19764655)
The Go compiler has `assert` and uses it for checking invariants, as mentioned in the article. I love Go, I'm down with the decisions the designers have made for the language but not exposing a proper and simplified assertion statement/expression while expecting the user to make their own doesn't sit well with me.
Re:The Use of assert() in SQLite by adito on Saturday April 27, 2019 @06:50AM (#19764899)
Isn't go compiler written in go? Is it different version of go that has `assert`?
Re:The Use of assert() in SQLite by apta on Saturday April 27, 2019 @10:36AM (#19765740)
They already have precedence in this, having a special version of the language only the golang authors can use (e.g. generics and asserts), and then claiming that they're not useful or too complicated for others to use.