Since all hypotheses need something predictable to test, here's my prediction. 9/11
-
-
Vastauksena käyttäjälle @kurtismcc
With the adoption of UFCS, a valid programming technique will be to forward declare "empty" classes and move all code into functions. 10/11
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjälle @kurtismcc
All that's left is the death of declaration (just resolve all these at link time) and you have... a typed Scheme. :-) 11/11
5 vastausta 0 uudelleentwiittausta 3 tykkäystä -
Vastauksena käyttäjälle @kurtismcc
Privacy and real methods will still have value. But limited. Focused on the data of the class. Bookkeeping would be difficult otherwise.
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjille @tloch14 ja @kurtismcc
I.e., preventing raw access to your dynamic array, lest someone forgets to keep the internal count fresh.
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjille @tloch14 ja @kurtismcc
In that way, UFCS bothers me as it removes subtle queues about what a function can do or what access it has.
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjille @tloch14 ja @kurtismcc
Unless you don't bother with privacy, but at that point you're just back at C and may as well just use function syntax.
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjälle @tloch14
You don't lose privacy in a functional language. Local variables in a function returning a function, for example (see JS.)
2 vastausta 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjille @kurtismcc ja @tloch14
And people will stick with the patterns they know until new ones develop that offer the same cues.
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjille @kurtismcc ja @tloch14
But that doesn't change the fact that C++ is already barely recognizable to C++ from ten years ago. Even greater changes coming.
1 vastaus 0 uudelleentwiittausta 1 tykkäys
That much I agree with.
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.