Adapt all exceptions/errors to use factory methods for signaling #226
Labels
bug
Fixes an issue, incorrect implementation
good first issue
Are you trying to have a good at SOMns? Start here!
help wanted
Would be great if you could help out here.
language-design
Not everything is in the spec, sometimes, we need to decide what's best.
Milestone
Currently, most exceptions are defined in a way that calls the signal method as part of the constructor.
This is problematic, because it makes subclassing correctly impossible.
For example: https://github.com/smarr/SOMns/blob/dev/core-lib/Kernel.ns#L902-L905
Any subclass would not have its fields properly initialized, which we need to fix by using factory/class-side methods for
signalWith:*
, and change the primary factory methods (constructors) to merely take the arguments and store them.The text was updated successfully, but these errors were encountered: