
Why not '\' instead of '::' for modules?
Re: Why not '\' instead of '::' for modules?
I like having my cake AND eating it 

The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: Why not '\' instead of '::' for modules?
Hi All,
I would not be opposed to '\', but I do like '::' for modules.
It is clear at a glance that I am looking at a module call and not a structure.
Also, to me it makes sense to use '::', as it reminds me of a namespace, which is somewhat how I see a module.
All that said, thank you for not using '_'.
I often use '_' in my naming, so for me, '_' would become an issue of breaking old habits.
Thanks again Fred and team for modules, I have been reorganizing my current project into modules, and so far I am very pleased with the implementation.
Regards,
David
I would not be opposed to '\', but I do like '::' for modules.
It is clear at a glance that I am looking at a module call and not a structure.
Also, to me it makes sense to use '::', as it reminds me of a namespace, which is somewhat how I see a module.
All that said, thank you for not using '_'.
I often use '_' in my naming, so for me, '_' would become an issue of breaking old habits.
Thanks again Fred and team for modules, I have been reorganizing my current project into modules, and so far I am very pleased with the implementation.
Regards,
David
Re: Why not '\' instead of '::' for modules?
we could have used Alt+0135 ----> ‡
(ALT key presses on
and the number 0135 )
it's more of a button press, but the caracter is alone and recognizable
I do not have the latest version of PureBasic
but I fear that "::" asks me problems with my Personal Editor (EPB)
because I use ':' to identify the lines separator ....
like:
(ALT key presses on
and the number 0135 )
it's more of a button press, but the caracter is alone and recognizable

I do not have the latest version of PureBasic
but I fear that "::" asks me problems with my Personal Editor (EPB)
because I use ':' to identify the lines separator ....
like:
Code: Select all
if foo> 1: foo = 1: endif
-
- Enthusiast
- Posts: 542
- Joined: Tue Apr 24, 2012 5:08 pm
- Location: Ontario, Canada
Re: Why not '\' instead of '::' for modules?
Some people are unhappy with the '\', some are unhappy with '::', and some are unhappy with '_'
I suggest we use the 'happy face', which should make everyone happy!!
For example:
ModuleName
ProcedureName
I suggest we use the 'happy face', which should make everyone happy!!
For example:
ModuleName

For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan
~ Spike Milligan
Re: Why not '\' instead of '::' for modules?
Lets go for it 
Next all users with a german styled keyboard will come and request the use of umlauts... ä ö ü
But please before we do that let's go with the copyright sign: ©

Next all users with a german styled keyboard will come and request the use of umlauts... ä ö ü
But please before we do that let's go with the copyright sign: ©
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: Why not '\' instead of '::' for modules?
No. You can replace it with N™ ("nick the module" ).Justin wrote: Is EndUsing really necessary?

-
- Addict
- Posts: 1518
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: Why not '\' instead of '::' for modules?
or ё, й, ъ, ж.request the use of umlauts... ä ö ü


Re: Why not '\' instead of '::' for modules?
i meant to use at the top of the file:No. You can replace it with N™ ("nick the module" ).
Code: Select all
using modA
using modB
using modAlias = modC
Re: Why not '\' instead of '::' for modules?
The problem is, that C# is truly file-based whereas PureBasic
treats the source code as one huge file, so an end directive is required.
C# for example doesn't even allow source code to be included into a file.
treats the source code as one huge file, so an end directive is required.
C# for example doesn't even allow source code to be included into a file.
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: Why not '\' instead of '::' for modules?
Hm,Justin wrote:And how about 'Using' instead of 'UseModule'? Like in C#, and make it valid only in the current file?
It's EndUsing really necessary?
Structure / EndStructure
With / EndWith
If / EndIf
Procedure / EndProcedure
UseModule / EndUsing?
If UseModule (or however it will be called) needs and end-command, shouldn't it be named the same way other PB commands have been designed?
PS: don't forget to update the IDE (indentation, goto matching keyword etc.)
Re: Why not '\' instead of '::' for modules?
It's not 'EndUseModule' because it's not like If/EndIf and such, you don't have to pair it (you won't use UnuseModule that often).