プログラミング
Bottom of this page.
|
<<last
0
1
2
e052b308
anonymous
2022-08-16 12:19
JacaScriptとかにおいて、
switch(chr){
case '<': xxx; break;
case '>': yyy; break;
default: zzz;
}
と、
const sDefault=new Symbol("default");
const commands=new Map([
['<', function(){xxx;}],
['>', function(){yyy;}],
[sDefault, function(){zzz;}]
]);
commands.has(chr)?
commands.get(chr)():
commands.get(sDefault)();
ってどちらが読みやすくてメンテしやすそうなんだろう?それ以外に特徴とかあるのだろうか?
Top of this page.
|
<<last
0
1
2
Name
E-mail
Post text
Agreement
Attach
limit: 1536KB
Suffix
AUTO
.3g2
.3gp
.3gpp
.3gpp2
.a
.aac
.adts
.ai
.aif
.aifc
.aiff
.ass
.au
.avi
.avif
.bat
.bcpio
.bin
.bmp
.c
.cdf
.cpio
.csh
.css
.csv
.dll
.doc
.dot
.dvi
.eml
.eps
.etx
.exe
.gif
.gtar
.h
.h5
.hdf
.heic
.heif
.htm
.html
.ico
.ief
.jpe
.jpeg
.jpg
.js
.json
.ksh
.latex
.loas
.m1v
.m3u
.m3u8
.man
.me
.mht
.mhtml
.mif
.mjs
.mov
.movie
.mp2
.mp3
.mp4
.mpa
.mpe
.mpeg
.mpg
.ms
.n3
.nc
.nq
.nt
.nws
.o
.obj
.oda
.opus
.p12
.p7c
.pbm
.pdf
.pfx
.pgm
.pl
.png
.pnm
.pot
.ppa
.ppm
.pps
.ppt
.ps
.pwz
.py
.pyc
.pyo
.qt
.ra
.ram
.ras
.rdf
.rgb
.roff
.rtx
.sgm
.sgml
.sh
.shar
.snd
.so
.src
.srt
.sv4cpio
.sv4crc
.svg
.swf
.t
.tar
.tcl
.tex
.texi
.texinfo
.tif
.tiff
.tr
.trig
.tsv
.txt
.ustar
.vcf
.vtt
.wasm
.wav
.webm
.webmanifest
.wiz
.wsdl
.xbm
.xlb
.xls
.xml
.xpdl
.xpm
.xsl
.xwd
.zip
Send to other nodes
Turn off first post for new BBS when you want to save your anonymity.
Error in timestamp
To save anonymity. Turn off for consecutive post.
POST
(プログラミング/149/0.0MB)
Powered by
shinGETsu
.