Wish for a Switch

William Lancee

Well-Known Member
Licensed User
Longtime User
I would like a switch that would invert the IDE Namespace from Native-Dominant to B4X-Dominant (and vice versa).

From:
Private lbl as Label
Private xlbl a B4XView

To:
Private lbl as View
Private xlbl as NativeLabel

With the switch set to B4X-Dominant there would be no "B4X" prefixes.
For me, I rarely would have to use the new "Native" prefix, and when I did it would be clear what I had in mind.

Imagine...

B4X:
Private Sub Page_Created (Root1 As View)
Pages.AddPageAndCreate("passwordPage", passwordPage)
Pages.ShowPageAndRemovePreviousPages("passwordPage")
Dim myPath As Path
Dim xPath As NativePath
Private cv As Canvas
Private xcv As NativeCanvas
Public imageRect As Rect
Private MP As MainPage
Private ftf As FloatTextField
Public elements As OrderedMap
Private Switch1 As Switch
Public fontFamily As Font
Private Sub Page_Resize (Width As Int, Height As Int)
tools.Get(3).As(View).Visible = False
2B||~2B?

This is just a random thought, born from boredom. Don't tell me you haven't thought of this.
If I were serious I would have put it Bugs & Wishlist Forum.

It would cause no end of troubles and confusion with legacy Apps, including one's own.
That is without the "small" consideration of implementation.
Although with the skills of the Founder it could probably be done in 24 little hours.
 

hatzisn

Expert
Licensed User
Longtime User
Why would you need this? You already have it with b4xtemplates...

Edit - I see... You are bored enough to turn a b4a application to b4x application... Right?
 

William Lancee

Well-Known Member
Licensed User
Longtime User
As B4X has matured from a collection of Apps for different platforms (albeit with the same language syntax) into a powerful
multi-platform development system, our code is littered with the "B4X" prefix.

We have to type more, and we have to read more characters before we see what is there (especially for left to right readers).
If "someone" were to design a new cross-platform language based on the B4X syntax, this could be avoided by assuming the
B4X... version for everything. To me this would make it more "elegant".

But the only name that such a language could have is "B4X".
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…