What is your language feature wish list?
-
Can we also have the redneck version called
aint
?Jeremy Falcon
How about the "aint not" operator? (Hillbilly?)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
Can we also have the redneck version called
aint
?Jeremy Falcon
-
and for set inclusion, the
all_yall
function."They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
You totally read my mind. I want this. I need this.
if (var1 in all yall (param1, param2, !param3)) {
// all yall are modifiers that are compiler hints, like inline,
// to tell it to apply comparison optimizations if possible
}Jeremy Falcon
-
Can we also have the redneck version called
aint
?Jeremy Falcon
Well, let's not, else we may wind up with multiple inheritance problems.
-
Well, let's not, else we may wind up with multiple inheritance problems.
The coding interviews would be like... Can you explain a binary search family tree with no branches? :laugh: :laugh: :laugh:
Jeremy Falcon
-
What languages, wishlists do you have for your favorite programming languages? C and where applicable, C++: preprocessor definitions that are private to the actual (in this case header) file they are contained in. namespaces that are private to their header. and/or a standard way to separate the implementation of templates into a cpp file a way to predeclare templates (not template instantiations) such that you can access them before they are defined. C#: Mainly I want its code generation to have DSL (domain specific language) capabilities. This means you can create code generation facilities that introduce new keywords into the language, for doing things like AOP and cross-cutting functionality orthogonal to any specific class. The only problem with it is I think it would be overused.
To err is human. Fortune favors the monsters.
C# -- Multiple inheritance. And a C-Preprocessor which is more flexible, for use with things other than vanilla C. I've wanted this since doing PRO*C back in the 90s.
-
How about the "aint not" operator? (Hillbilly?)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
Daniel Pfeffer wrote:
How about the "aint not" operator?
That would be t'aint
PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com
-
and for set inclusion, the
all_yall
function."They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
for (hold_my_bear in watch_this) { }
PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com
-
Daniel Pfeffer wrote:
How about the "aint not" operator?
That would be t'aint
PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com
-
The coding interviews would be like... Can you explain a binary search family tree with no branches? :laugh: :laugh: :laugh:
Jeremy Falcon
Jeremy Falcon wrote:
Can you explain a binary search family tree with no branches loops?
FTFY :)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
C# -- Multiple inheritance. And a C-Preprocessor which is more flexible, for use with things other than vanilla C. I've wanted this since doing PRO*C back in the 90s.
PIEBALDconsult wrote:
C# -- Multiple inheritance.
If you want C++, you have it. There were good reasons for including multiple inheritance in C++ at the time, and equally good reasons why C# and Java did not include it.
PIEBALDconsult wrote:
And a C-Preprocessor which is more flexible, for use with things other than vanilla C.
Personally, I consider the C preprocessor in its current form to be poorly engineered. Because its definitions are global, the inclusion of a header file can totally change the semantics of a module. Yes, it has its uses, but on any large project it requires a lot of coordination to avoid definition clashes etc.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
What languages, wishlists do you have for your favorite programming languages? C and where applicable, C++: preprocessor definitions that are private to the actual (in this case header) file they are contained in. namespaces that are private to their header. and/or a standard way to separate the implementation of templates into a cpp file a way to predeclare templates (not template instantiations) such that you can access them before they are defined. C#: Mainly I want its code generation to have DSL (domain specific language) capabilities. This means you can create code generation facilities that introduce new keywords into the language, for doing things like AOP and cross-cutting functionality orthogonal to any specific class. The only problem with it is I think it would be overused.
To err is human. Fortune favors the monsters.
I'd like to have a language/IDE that can sense my mind, interpret what I want to accomplish, and generate the code required to fulfill my wish. Is that really too much to ask, in this era of AI domination?
Will Rogers never met me.
-
What languages, wishlists do you have for your favorite programming languages? C and where applicable, C++: preprocessor definitions that are private to the actual (in this case header) file they are contained in. namespaces that are private to their header. and/or a standard way to separate the implementation of templates into a cpp file a way to predeclare templates (not template instantiations) such that you can access them before they are defined. C#: Mainly I want its code generation to have DSL (domain specific language) capabilities. This means you can create code generation facilities that introduce new keywords into the language, for doing things like AOP and cross-cutting functionality orthogonal to any specific class. The only problem with it is I think it would be overused.
To err is human. Fortune favors the monsters.
In R: A function that returns the path to where the R script was loaded from.
-
In C# and C++ an "in" and "!in" operators. For example, if we have"
if(var1 == param1 || var1 == param2 || !(var1 == param3))
{
//do stuff
}to be able to translate to:
if(var1 in (param1, param2, !param3))
{
//do stuff
}Advertise here – minimum three posts per day are guaranteed.
YES !!!! and as in : if (ch in [A..Z,0..9]) as it is in Pascal.
-
What languages, wishlists do you have for your favorite programming languages? C and where applicable, C++: preprocessor definitions that are private to the actual (in this case header) file they are contained in. namespaces that are private to their header. and/or a standard way to separate the implementation of templates into a cpp file a way to predeclare templates (not template instantiations) such that you can access them before they are defined. C#: Mainly I want its code generation to have DSL (domain specific language) capabilities. This means you can create code generation facilities that introduce new keywords into the language, for doing things like AOP and cross-cutting functionality orthogonal to any specific class. The only problem with it is I think it would be overused.
To err is human. Fortune favors the monsters.
Not at all my favorite language, but I do wish that JavaScript could handle associative arrays (not objects) in foreach loops where keys and values could be easily accessed for each item in the array, and so that it could be done recursively. The workarounds for this are making me bug-eyed.
-
Can we also have the redneck version called
aint
?Jeremy Falcon
+10! :laugh:
Software Zen:
delete this;
-
YES !!!! and as in : if (ch in [A..Z,0..9]) as it is in Pascal.
I make a static Hashset for that (C#).
-
In R: A function that returns the path to where the R script was loaded from.
-
I make a static Hashset for that (C#).
That's cool. The build-in contains/subset functions are native and fast.
Advertise here – minimum three posts per day are guaranteed.
-
I make a static Hashset for that (C#).
Well, yes, but ... In all the Pascals I have been in touch with, it is implemented as a bit map. A few orders of magnitude lighter, I guess. There are several other Pascal features I certainly would welcome in C#. Such as decent enumerations, as a first class data type - not just symbolic names for integers, that cannot even be used as integers! In particular: The enum we are offered cannot even be used as an array index type. Closely related: I would welcome Pascal style subrange types. Define a type Year = 1900..2050, and assigning a value outside this range to a variable of type Year is caught by the runtime system (or the compiler, if it can be determined statically). Related to this: An array with index type Year, so valid index values run from 1900 to 2050. To go a little beyond Pascal: I wish we had a mechanism for defining incompatible types: If I could define 'new type Speed = float;' and 'new type Volume = float;', variables of type Speed and Volume would be incompatible, and the compiler would give an error if you try to add them (without a proper operator definition for the two types, or an explicit cast).