The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
Yes, but it shouldn't be enforced by the compiler. I wouldn't want the compiler to dictate where I should put whitespace either.
Eddy Vluggen wrote:
"callback", not an event
The syntax says event so that's what it is; but that's really just a type, conceptually it could be a callback. Just as an int could be an ID or an index. I wouldn't see a need to have two keywords for such similar concepts. Come to think of it, this is really like the difference between functions and procedures -- functions return a value and procedures don't -- some languages (Pascal and VB for instance) make the syntactic distinction and others (C-like languages for instsance) don't, and I agree with the C way of doing it.
As an aside: VB doesn't allow events to have a return value.
Eddy Vluggen wrote:
it pays to have YOU tell how I should write my code
I hope I don't do that. CP is definitely a great place to get many points of view from others with varied experiences.
<voice type="MOB" >I say this thing with the greatest respect</voice>
There has been a lot of grumbling (not alot[^]) about the new Visual Studio 2012. Well I for one think it's great. Previously, it was difficult to understand how users with Color Blindness and other Visual Issues interacted with your application. By removing all colors and highlights from the User Interface, MS has made all users equal. No more will people with better eye sight be allowed to take advantage of a better visual experience. Equality for all!
You know, we joke about this kind of thing but I'm working in a current version of another "development environment"[^] where adding a line of code into a script requires a double-click or drag and drop.
And this thing has certifications and a developer network as well.
Are you sure it "has certifications" and not it is "certified [as insane]"
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt
Last Visit: 31-Dec-99 19:00 Last Update: 24-Feb-17 12:58