Python Forum
[split] Debate on Python versus VBnet
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Debate on Python versus VBnet
#4
Forth can be hard to read, or it can read like English if you plan carefully. and is easy to figure out if you're used to it. And it's not as hard to read as Lisp. I've done large-scale Windows desktop apps with Forth !! And, as an aside, somebody on this forum was trying to use Python to format numbers a special way (make 3360 look like b’\x0D\x20′) and couldn't figure it out. Neither could I. But here it is in a Forth word I wrote to test it. No extra libraries needed, no includes, no docs to pour over:

: >HEXF ( n — addr cnt )
BASE @ >R HEX 0
<# ”’ HOLD # # ‘x’
HOLD ‘\’ HOLD # # ‘x’
HOLD ‘\’ HOLD ”’
HOLD ‘b’ HOLD #>
R> BASE !
;

\ run and output:

3360 >HEXF CR TYPE

b’\x0D\x20′

I'm not saying Forth is better or anything... I just wanted to share in case anybody was interested in the 'Forth' discussion branch here.
Reply


Messages In This Thread
[split] Debate on Python versus VBnet - by Budsy - Mar-15-2018, 10:31 AM
RE: [split] Debate on Python versus VBnet - by Budsy - Mar-31-2018, 06:16 PM
RE: Debate on Python versus VBnet - by Larz60+ - Mar-15-2018, 02:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Debate on Python versus VBnet RandoomDude 17 10,267 May-01-2017, 03:55 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020