User loginNavigation |
Non-null references?Hi, Is it possible/plausible to have a Java/C++ like language in which you can write code like: void aFunction(nonnull Object o) .... Something s = new Something(); and then have the type system prove that o can never be null? This feels simple but I wonder if it ends up becoming dependent types, arbitrary theorem proving or some other suitably scary thing. Being able to add simple, small increases in type safety to a program written in a non-functional language would be quite nice to have! I also wonder if this sort of thing could be implemented using C++ smart pointers. By Mike Hearn at 2006-05-13 21:23 | LtU Forum | previous forum topic | next forum topic | other blogs | 17828 reads
|
Browse archives
Active forum topics |
Recent comments
1 week 1 day ago
41 weeks 3 days ago
41 weeks 3 days ago
41 weeks 3 days ago
1 year 11 weeks ago
1 year 15 weeks ago
1 year 17 weeks ago
1 year 17 weeks ago
1 year 20 weeks ago
1 year 24 weeks ago