Click here to Skip to main content
15,892,674 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Anyone working with Cisco IoT? Pin
RossMW27-Feb-19 13:03
professionalRossMW27-Feb-19 13:03 
AnswerRe: Anyone working with Cisco IoT? Pin
Marc Clifton28-Feb-19 1:51
mvaMarc Clifton28-Feb-19 1:51 
JokeRe: Anyone working with Cisco IoT? Pin
Chris Maunder28-Feb-19 6:31
cofounderChris Maunder28-Feb-19 6:31 
AnswerRe: Anyone working with Cisco IoT? Pin
maze328-Feb-19 3:07
professionalmaze328-Feb-19 3:07 
RantC# explicit operators aren't that explicit :( Pin
Eric Lynch27-Feb-19 10:56
Eric Lynch27-Feb-19 10:56 
GeneralRe: C# explicit operators aren't that explicit :( Pin
BillWoodruff27-Feb-19 11:59
professionalBillWoodruff27-Feb-19 11:59 
GeneralRe: C# explicit operators aren't that explicit :( Pin
Peter_in_278027-Feb-19 19:43
professionalPeter_in_278027-Feb-19 19:43 
GeneralRe: C# explicit operators aren't that explicit :( Pin
Eric Lynch28-Feb-19 1:30
Eric Lynch28-Feb-19 1:30 
Unfortunately, it causes quite a bit of grief. The example I provided was the shortest code I could write to share my pain. Thank you for your thought, but not hoping for an actual solution here...simply ranting Smile | :)

Regrettably, the actual problem is a lot more complex. It also involves collection initializers, method signature ambiguity, and the entire zoo of built-in numeric data types. I'm helping consumers of a framework avoid the detritus added by explicit casts / constructor invocations.

I already have a solution...a separate method signature for each data type (in my code). Its not a huge deal, simply repellant to look at. It also snowballs a bit, to a few places, and forces me to carry test cases for each one.

If C# had a different precedence for implicit/explicit, a far more elegant solution would be possible. That, and honestly, it annoys me that it favors an implicit convenience over something I've told it explicitly NOT to do.
GeneralThe Stone Age Pin
David O'Neil27-Feb-19 8:56
professionalDavid O'Neil27-Feb-19 8:56 
GeneralRe: The Stone Age Pin
Mike Hankey27-Feb-19 9:44
mveMike Hankey27-Feb-19 9:44 
GeneralRe: The Stone Age Pin
David O'Neil27-Feb-19 10:39
professionalDavid O'Neil27-Feb-19 10:39 
GeneralRe: The Stone Age Pin
kalberts27-Feb-19 22:34
kalberts27-Feb-19 22:34 
GeneralRe: The Stone Age Pin
enhzflep28-Feb-19 7:31
enhzflep28-Feb-19 7:31 
AnswerRe: The Stone Age Pin
ZurdoDev28-Feb-19 1:45
professionalZurdoDev28-Feb-19 1:45 
GeneralRe: The Stone Age Pin
Mike Hankey28-Feb-19 1:51
mveMike Hankey28-Feb-19 1:51 
GeneralRe: The Stone Age Pin
Rage27-Feb-19 10:06
professionalRage27-Feb-19 10:06 
GeneralRe: The Stone Age Pin
David O'Neil27-Feb-19 11:27
professionalDavid O'Neil27-Feb-19 11:27 
GeneralRe: The Stone Age Pin
dandy7227-Feb-19 10:59
dandy7227-Feb-19 10:59 
GeneralRe: The Stone Age Pin
David O'Neil27-Feb-19 11:21
professionalDavid O'Neil27-Feb-19 11:21 
GeneralReally, Amazon? Pin
Kornfeld Eliyahu Peter27-Feb-19 8:47
professionalKornfeld Eliyahu Peter27-Feb-19 8:47 
GeneralRe: Really, Amazon? Pin
David O'Neil27-Feb-19 8:57
professionalDavid O'Neil27-Feb-19 8:57 
GeneralRe: Really, Amazon? Pin
Ron Anders27-Feb-19 9:35
Ron Anders27-Feb-19 9:35 
GeneralRe: Really, Amazon? Pin
Jörgen Andersson27-Feb-19 9:45
professionalJörgen Andersson27-Feb-19 9:45 
GeneralRe: Really, Amazon? Pin
Richard Deeming27-Feb-19 10:49
mveRichard Deeming27-Feb-19 10:49 
GeneralRe: Really, Amazon? Pin
CPallini27-Feb-19 22:14
mveCPallini27-Feb-19 22:14 

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.