4 ms·
I think you are missing the root idea here: - you write "auto" as the type. - You run a script that updates your code and replaces "auto" with the appropriate
by Rhapso 2y ago
I think you are missing the root idea here:
- you write "auto" as the type.
- You run a script that updates your code and replaces "auto" with the appropriate type for you to review and keep in the code.
- nottorp 2y agoBut... by the time I get to run the script I've already written the code so I have no more need to know what that auto signified. Hmm perhaps auto should be an IDE function and not a language feature? Type: auto blih = *that_custom_collection_from_the_legacy_code_base->begin(); and when you press enter it replaces it with the proper type. True story. I could use that right now :)
- Rhapso 2y agoa preprocessor program is how an IDE would do that under the hood and is accessible in general too.