Click here to Skip to main content
15,913,584 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: Do agile certifications mean anything? Pin
Vark11116-Feb-16 2:51
Vark11116-Feb-16 2:51 
GeneralRe: Do agile certifications mean anything? Pin
Dan Neely16-Feb-16 3:06
Dan Neely16-Feb-16 3:06 
NewsGoldman Sachs: VR and AR “Will be the next generation computing platform” Pin
Kent Sharkey15-Feb-16 10:53
staffKent Sharkey15-Feb-16 10:53 
GeneralRe: Goldman Sachs: VR and AR “Will be the next generation computing platform” Pin
Duncan Edwards Jones15-Feb-16 11:31
professionalDuncan Edwards Jones15-Feb-16 11:31 
NewsA bit of background for the unified call proposal Pin
Kent Sharkey15-Feb-16 10:51
staffKent Sharkey15-Feb-16 10:51 
GeneralRe: A bit of background for the unified call proposal Pin
PIEBALDconsult15-Feb-16 12:13
mvePIEBALDconsult15-Feb-16 12:13 
GeneralRe: A bit of background for the unified call proposal Pin
Rob Grainger16-Feb-16 0:06
Rob Grainger16-Feb-16 0:06 
GeneralRe: A bit of background for the unified call proposal Pin
Dan Neely16-Feb-16 3:15
Dan Neely16-Feb-16 3:15 
Quote:
To my surprise, many people came out strongly against x.f(y) finding f(x,y) – even if member functions were preferred over free-standing functions by the lookup rules. I received email accusing me of “selling out to the OO crowd” and people whose experience and opinion I respect insisted that x.f(y) finding f(x,y) would seriously compromise their ability to design stable interfaces. I think those fears are greatly exaggerated, but I could be wrong. Also, I prefer the dot syntax in some cases; for example, I find x.f(y).g(z) more readable than g(f(x,y),z). However, there was no chance of acceptance of a proposal that included x.f(y) finding f(x,y). Maybe modules will eventually help here. Furthermore, David Vandevoorde pointed out that because of the two-phase lookup rules having x.f(y) find f(x,y) would complicate the task for compiler writers and possibly be expensive in compile time.


So, we are left with a simple proposal to allow f(x,y) to find x.f(y) where f(x,y) wouldn’t work today.


Could someone explain why allowing f(x,y) to find x.f(y) is apparently so much easier than allowing x.f(y) to find f(x,y)?

Also, while not explicitly stated, the article's implying that f(x,y) to x.f(y) is going to be less bad for API maintainers. I'm not really seeing why one version would be less of a potential problem than the other. Also, while there probably are legacy APIs where the two aren't the same - preventing the simplest implementation - I can't think of a reason for doing so that isn't a cluster elephant. That being the case, any argument on the line of "mapping one to the other would limit my future options by preventing me from having both and making them work differently" sounds like "I want to be able to do something stupid". Again, am I missing something here?
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

NewsDon't set your iOS device to Jan 1, 1970, could brick it. Nobody would ever do that, right? Pin
raddevus15-Feb-16 9:13
mvaraddevus15-Feb-16 9:13 
GeneralRe: Don't set your iOS device to Jan 1, 1970, could brick it. Nobody would ever do that, right? Pin
PIEBALDconsult15-Feb-16 9:15
mvePIEBALDconsult15-Feb-16 9:15 
GeneralRe: Don't set your iOS device to Jan 1, 1970, could brick it. Nobody would ever do that, right? Pin
raddevus15-Feb-16 9:26
mvaraddevus15-Feb-16 9:26 
NewsThere’s something fishy about those Windows 10 market-share numbers Pin
Kent Sharkey15-Feb-16 8:42
staffKent Sharkey15-Feb-16 8:42 
NewsKotlin 1.0 released: pragmatic language for JVM and Android Pin
Kent Sharkey15-Feb-16 8:33
staffKent Sharkey15-Feb-16 8:33 
NewsMicrosoft open sources XAML Behaviors Pin
Kent Sharkey15-Feb-16 8:32
staffKent Sharkey15-Feb-16 8:32 
GeneralRe: Microsoft open sources XAML Behaviors Pin
Kornfeld Eliyahu Peter15-Feb-16 19:35
professionalKornfeld Eliyahu Peter15-Feb-16 19:35 
NewsYou should be tech-agnostic in every development project Pin
Kent Sharkey14-Feb-16 10:51
staffKent Sharkey14-Feb-16 10:51 
GeneralRe: You should be tech-agnostic in every development project Pin
Rob Grainger14-Feb-16 22:18
Rob Grainger14-Feb-16 22:18 
GeneralRe: You should be tech-agnostic in every development project Pin
Duncan Edwards Jones15-Feb-16 1:01
professionalDuncan Edwards Jones15-Feb-16 1:01 
GeneralRe: You should be tech-agnostic in every development project Pin
Kornfeld Eliyahu Peter15-Feb-16 1:13
professionalKornfeld Eliyahu Peter15-Feb-16 1:13 
GeneralRe: You should be tech-agnostic in every development project Pin
jesarg15-Feb-16 3:17
jesarg15-Feb-16 3:17 
GeneralRe: You should be tech-agnostic in every development project Pin
Erik Burd15-Feb-16 10:44
professionalErik Burd15-Feb-16 10:44 
GeneralRe: You should be tech-agnostic in every development project Pin
Joe Woodbury20-Feb-16 22:19
professionalJoe Woodbury20-Feb-16 22:19 
GeneralRe: You should be tech-agnostic in every development project Pin
ed welch15-Feb-16 12:25
ed welch15-Feb-16 12:25 
GeneralRe: You should be tech-agnostic in every development project Pin
Marc Clifton15-Feb-16 15:37
mvaMarc Clifton15-Feb-16 15:37 
NewsCoding is more important than Shakespeare, says VC living in self-contained universe Pin
Kent Sharkey14-Feb-16 10:44
staffKent Sharkey14-Feb-16 10:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.