It seems to me that technically both are interchangeable but have different conventional meanings.
What is the difference between [ ] and ( ) brackets in Racket (lisp programming language)?
8.9k Views Asked by Mahathi Vempati At
1
There are 1 best solutions below
Related Questions in SYNTAX
- Swift 2 - Pattern matching in "if"
- PHP designer 8 Syntax Highlighing
- Why does pattern "*.so?(.*)" produce a syntax error in a script but not on command line?
- Chaining in rails (ERB) files
- How to automate a process by pulling elements from a data frame in R -looping with a string?
- invalid syntax non specific error
- Is there any method or macro to simulate syntax "if(a <= b < c <= ...)" to replace "if(a<=b && b < c && c <= ...)"?
- Is "long long" = "long long int" = "long int long" = "int long long"?
- Syntax error python 2.7
- Java: get all method parameters as Object array
- Objective-C syntax: <>
- C++ - Why does 2 local references to the same object stay in sync?
- How to jump/display the column of an error
- Javascript syntax highlighter infinite loop
- Syntax Error when using 'delete'
Related Questions in RACKET
- Writing a `define-let` macro, with hygiene
- Racket/Scheme embed list within existing list
- display executing name of the current running script
- How is it possible to filter a list of directories via "directory-exists?"?
- create a new list in the same format as taken from text file
- Find empy lines in text file
- remove file name if it is already in the list
- Is there a way to see the body of a lambda in Racket?
- Transpose a matrix in racket (list of lists
- write list to file using display-lines-to-file
- Racket: Graphing a parabola with elements from a list
- Racket\Scheme compare and delete unwanted items in a list
- Extracting the number of members inside a structure
- Racket db disconnect raises an exception
- Using .ico files as icons when creating executables in DrRacket IDE
Related Questions in BRACKETS
- AngularJS: Directive with arbitrary start and end symbols
- php - function()[] syntax
- C reading string and accepts only brackets dynamically
- What is the difference between [ ] and ( ) brackets in Racket (lisp programming language)?
- How to do a postgres Select statement which contains round brackets in a batch?
- Python negative index?
- In what version of javascript was bracket notation introduced for arrays?
- Use REGEX to replace X(...) with X{...}
- Program expects a bracket, but there is one there already there
- Confused about the brackets in this loop
- Jump matching bracket in Eclipse in a text file
- C# Brackets between string constructor and the string itself
- Check brackets are balanced/matching
- Using Text::Balanced to find strings enclosed in fat brackets {{..}} or [[..]]
- postgres substring escape open bracket character
Related Questions in CONVENTION
- Passive Objects in C++
- Rails indentation convention
- What is the naming convention for CMake scripts?
- Is it proper convention to just name a GitHub remote `github`?
- Java naming convention for a class with version in its name?
- Google JS Coding Conventions - "The var keyword must not be used"
- Microsoft's Consistency in PowerShell CmdLet Parameter Naming
- What is the difference between [ ] and ( ) brackets in Racket (lisp programming language)?
- Is there any convention for methods 'converting' an object into another? (toX, fromY)
- Best way of creating dynamic conditions in sql functions
- Alternative for checkstyle
- How to avoid creating objects to check or get content from Maps in Java
- Including file known to already be included
- Calling an overridable method in constructor is bad. Are there exceptions?
- What is the convention for optional dependency injection via properties?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
According to the Racket documentation, there is no difference -- there is only a convention to use
[and]forcondclauses (and use your judgement for the rest, as far as I understand):Without having any knowledge about the design of the Racket language, my guess would be that square brackets were introduced as a response to complaints that many Lisp expressions are hard to read due to the large number of identical-looking parentheses, especially at the ends of deeply nested constructs. In other words, it's probably used to allow your eye to easily establish some points of reference in the code to identify what bracket you're closing at any given point.