Reputation
8,301
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
12 67 129
Impact
~506k people reached

Oct
30
comment Why can't Java/C# implement RAII?
blogs.msdn.com/b/oldnewthing/archive/2010/08/10/10048150.aspx is a relevant page to this question.
Oct
30
comment Why can't Java/C# implement RAII?
I fail to see implicitness which is the original requirement from OP. "more implicit than" is strange to me, or it is implicit or it is explicit. Disclaimer: I am just interested in language design here, I'm not saying that C# or Java should implement this.
Oct
30
comment Why can't Java/C# implement RAII?
It's similar, not exact duplicate.
Oct
30
comment Why can't Java/C# implement RAII?
Why you need copy/move constructor? File stills a reference type. In that situation f which is a pointer is copied to the caller and it is responsible to dispose the resource (the compiler implicitly would put a try-finally-dispose pattern in the caller instead)
Sep
8
awarded  Yearling
Aug
27
awarded  Popular Question
Aug
2
awarded  Popular Question
Jul
14
awarded  Good Question
May
15
awarded  Good Answer
Apr
27
awarded  Notable Question
Apr
7
awarded  Popular Question
Apr
6
awarded  Good Question
Mar
4
awarded  Constituent
Feb
21
awarded  Caucus
Jan
18
awarded  Notable Question
Dec
30
awarded  Notable Question
Oct
24
accepted What are the main advantages and disadvantages of LL and LR parsing?
Oct
19
awarded  Nice Question
Oct
15
awarded  Notable Question
Oct
12
awarded  Nice Question