4 ms·
Interesting. Looking forward to more comments on this. * It looks like exceptions carry no error information. When something goes wrong, you know nothing. I
by Animats 9y ago
Interesting. Looking forward to more comments on this.
* It looks like exceptions carry no error information. When something goes wrong, you know nothing. Is that right?
* Calling finalizers from GC is usually troublesome. They get called late, so they can't be relied to close files and such. They also have to be prevented from making trouble by doing things you can't do during GC, or "re-animating" the object being deleted. How's that handled?
* The notion that variable type is established at initialization is becoming mainstream. How about extending that to structures? The fields of structures could get their types inferred from the structure constructor. (There was a statically typed variant of Python, Shed Skin, which did this.)
- spooneybarger 9y ago> * It looks like exceptions carry no error information. When something goes wrong, you know nothing. Is that right? Yes and no. You know something went wrong. `error` is supposed to only be used when it indicates a specific thing that went wrong. If you need error information, you should use a union type ala Rust. There's been discussion on the Pony core team to change the name from "exception" has that carries a lot of expectations these days (folks generally expect that they will be akin to exceptions in Java et al)