Dyalog / Jarvis

APL-based web service framework supporting JSON or REST
https://dyalog.github.io/Jarvis/
MIT License
33 stars 6 forks source link

Simpler `sint` #59

Closed MaxCan-Code closed 7 months ago

MaxCan-Code commented 7 months ago

https://github.com/Dyalog/Jarvis/blob/4c23d762715c797e0bf8e9320c422fd4545238d0/Source/Jarvis.dyalog#L1723 can be simplified to

sint←{⎕IO←0 ⋄ 83=⎕DR ⍵:⍵ ⋄ ((⍳,-+⍳)128)[utf8 ⍵]}

same goes for HttpCommand: https://github.com/Dyalog/HttpCommand/blob/2659ea89357f85cbe10d38797500c629c1f2cb8b/source/HttpCommand.dyalog#L958

bpbecker commented 7 months ago

Hi Max,

I appreciate your suggestion!

So, in this case, I think I'll leave things as they are. (but I do like your solution!)

/Brian