Questions Concepts
GitHub icon

Case Insensitive Identifiers

Case Insensitive Identifiers - language feature

< >
Example from Fortran:
x = 2.0 y = x + X
Example from Ada:
with Gnat.Io; use Gnat.Io; procedure Numbers is Score: Integer; F: Float := 1.0; begin Score := 3 + 2#1011#; Put(score); New_Line; Score := Score + 1_000_000; Put(Score); New_Line; end Numbers;
Example from Pascal, ADLIB, Extended Pascal:
s := (A + a + A);
Example from VHDL:
signals some_signal : integer ; signal some_other_signal : integer ; signal result : integer ; ReSULT <= SOME_SIGNAL + sOME_oTHer_SIGNal ; -- Although totally unrecommended - this is perfectly legal
Example from Nim:
# Though they may be phased out: #
Example from Speedie:
if "abc".LeNgTh == 3 "cool length"

Languages with Case Insensitive Identifiers include SQL, HTML, Fortran, MySQL, COBOL, CSS, Ada, PostgreSQL, Pascal, SAS, Visual Basic, BASIC, Delphi, Eiffel, VHDL, SPSS, Nim, Visual Basic .NET, Forth, Batchfile, AutoHotkey, Speedie, Gforth, ADLIB, Extended Pascal

Languages without Case Insensitive Identifiers include Java, JavaScript, Python, C, C++, XML, PHP, Perl, Ruby, R, JSON, Go, Swift, Scala, Rust, Kotlin, Arduino Programming Language, Haskell, TypeScript, Lisp, Lua, Julia, Clojure, Prolog, Node.js, Objective-C, Elixir, Erlang, CUDA, Scheme, Dart, Modula-2, Tcl, ActionScript, Reason, CoffeeScript, F#, Elm, Maple, OCaml, Modula-3, Racket, Smalltalk, D, Sage, GraphQL, LaTeX, XQuery, Chapel, SQLite, JSON5, Cython, C3, Ion, progsbase, Pizza, Bel, JSONiq, JSON with Comments, C2, Superjson, Jsonnet, Hocon, CLPR, Oracle Java, Deesel, Tick C, cooC, GAEA, Static Typescript, Modula-2+, Progol

This question asks: Are identifiers in this language case insensitive?

Read more about Case Insensitive Identifiers on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Traffic Traffic Today Day 305 Logout