Other New release: B4A v14.0 with optional parameters

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4A v14.0 follows B4J v10.7 and adds the optional parameters feature to B4X programming language.

The parser has undergone a major refactoring, resulting in performance improvements and providing the potential for new language features. The first one is optional parameters.

B4X:
'From:
Dim b() As Byte = "aaaa".GetBytes("UTF-8")
'''
Dim s As String = BytesToString(b, 0, b.Length, "UTF-8")

'To:
Dim b() As Byte = "aaaa".GetBytes
'''
Dim s As String = BytesToString(b)

'From:
Dim j As HttpJob
j.Initialize("", Me) 'unused JobName and always "Me"
j.Download(url)

'To:
Dim j As HttpJob
j.Initialize
j.Download(url)

Improvements:

Download link: https://www.b4x.com/b4a.html
 

Duque

Active Member
Licensed User
Longtime User
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

aeric

Expert
Licensed User
Longtime User
I assume no changes for Android SDK Command Line tools and resources_7_25.zip used in version 13.5.
 
Upvote 0

byz

Active Member
Licensed User
resulting in performance improvements and providing the potential for new language features. The first one is optional parameters.
Regarding the "potential for new language features" you mentioned — could you elaborate on how optional parameters fit into this? Does this mean we can expect more modern language features in B4X's future roadmap? And if so, what other features are you considering or planning?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
could you elaborate on how optional parameters fit into this?
Yes, a large refactoring was done in order to support optional parameters.
Maybe a variant of varargs (as an alternative to Array()).

Compile time automatic type inference:
B4X:
Dim x = "aa" 'x is string
Dim i  = 12 'i is int
Dim b = pnl.GetView(i) 'b is B4XView

And other stuff that is too premature to even post it...
 
Upvote 0

Sergio83

Active Member
Licensed User
Longtime User
Hi Erel,
As usual plenty of interesting new features!
Many thanks for the job you do to help us in our devlopments.
 
Upvote 0
Top