
EnableExplicit on by default.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
agreedKale wrote:EnableExplicit is essential for any serious PB program you write.
agreedrsts wrote:For those who believe it is essential, it's probably well worth the few characters you have to enter to enable it.
best argument of allakj wrote:Traditionally one of the big features of Basic is that beginners can ignore all code housekeeping/declarations and still get simple programs to work.
Making EnableExplicit the default would be another departure from this tenet of simplicity.
oh... and have a nice day.
Most error from beginners a false typed variables, false scope of variables
and so on. EnableExplicit is the only way to help beginners.
Beginner make copy and paste with missing thinks, EnableExplicit should
help, so it's for beginners the best using this great feature.
and so on. EnableExplicit is the only way to help beginners.
Beginner make copy and paste with missing thinks, EnableExplicit should
help, so it's for beginners the best using this great feature.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Which traditionally produces bad programmers.akj wrote:Traditionally one of the big features of Basic is that beginners can ignore all code housekeeping/declarations and still get simple programs to work.
Holding beginners' hands is the only way to teach them properly. Learning to code 'carefully' with discipline is not something a beginner would do and is simply the process of unnecessarily trying to avoid pitfalls that can be caught automatically by the compiler. Honestly, why make things hard?akj wrote:> EnableExplicit is the only way to help beginners
Nah, it only holds their hand and doesn't teach them to code carefully. IMO.
Saying that, I wouldn't want EnableExplicit enabled by default though.
I find it a luxury to be able to draft code without having to think about having to use Define/Protected all the time. I only add EnabledExplicit after I'm satisfied with my code and begin locking down on its functionality.

freak as a point.freak wrote:If it you have no problem putting 'Define' before every single variable, why is it such a big deal to put a single 'EnableExplicit' in the source ?

No training wheels by default please!
Yes Enable Explicit is useful but not while your hacking about.

Yes Enable Explicit is useful but not while your hacking about.
Can't remember what you typed five minutes ago?
Do you get a bit dizzy while wading through 30000 lines of code?
Find it hard to actually write code these days?
What you need is the safety and security of a Zimmer Frame.
At microsoft we understand our market and created the tools of tomorrow, today. We guarantee .Net will get you moving again at your slower pace, letting you get on with writing the solutions with total peace of mind in a safe secure dribble proof environment, designed to support you. With .Net you'll be producing professional Crippledware(tm) in no time at all!
