Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8285609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:30:53+00:00 2026-06-08T11:30:53+00:00

In Erlang, using => to compare two variables results in a syntax error, you

  • 0

In Erlang, using => to compare two variables results in a syntax error, you have to use >= instead:

1> 10 => 5.
* 1: syntax error before: '>'
2> 10 >= 5.
true

Why is that? The same applies for <= which has to be written as =<. Is this because Erlang always used this syntax, or are the sequences => and >= used somewhere else?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:30:54+00:00Added an answer on June 8, 2026 at 11:30 am

    This is probably just an Erlang convention. The reason I’d guess would be to do with how we pronounce these symbols: “greater than or equal to”, “less than or equal to”. It’s really a rendering of the greater-than-or-equal-to/less-than-or-equal-to symbol in ASCII, so at some point someone decided the token should be <= and >=, and the convention has stuck in most languages, but it’s fairly arbitrary. Perhaps they were attempting to create some kind of representation of the asymmetric nature of these operators.

    It’s also worth noting that lots of languages use => to mean some kind of arrow, such as separating the body of a function from its arguments, or as logical entailment. Not sure about the converse one.

    EDIT: It appears that Erlang uses <= in comprehensions, which is why they’ve avoided using it as a comparison operator, and opted for the (slightly backwards) syntax instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Nitrogen, the Erlang web framework , I have the following method that receives
I have several nodes running in an erlang cluster, each using the same magic
CouchDB, version 0.10.0, using native erlang views. I have a simple document of the
In ERLANG: Assume we have a function f() that takes F1 as inputs where
So I've been using Erlang for the last eight hours, and I've spent two
I have written a simple erlang app using gen_server. When starting it with application:start(myapp),
I have a list of elements in Erlang, and I'm using lists:foreach to traverse
for my application i have to parse CSV file using Erlang.following is the code
I'm using iOS Couchbase Mobile to have a couchdb server on an iPad that
I have written a web-service using Erlang and Mochiweb. The web service returns a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.