Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Use of outer in default argument expressions #270
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Why would it suggest something deeper? Gavin often makes the typechecker throw errors for features that are not finished yet, right? In this case I'm pretty sure it's because we don't support references to outer from within defaulted initializer parameters yet.
Personally I think he just forgot to add the "not yet supported", I'm pretty sure I remember when he added this when I made the first support of default expressions and there was something that didn't work and we couldn't figure out an easy way to fix it so he decided just to prohibit it for now. this worked but outer was more difficult somehow.