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 7909667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:32:19+00:00 2026-06-03T12:32:19+00:00

What is the difference between a Library and a Language extension? Specifically in Scala.

  • 0

What is the difference between a Library and a Language extension? Specifically in Scala.

  • 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-03T12:32:22+00:00Added an answer on June 3, 2026 at 12:32 pm

    This is valid both for Scala and for Java, a library could be defined as:

    In computer science, a library is a collection of resources used to develop software. These may include pre-written code and subroutines, classes, values or type specifications.

    It means that (I know, I simplify a lot) a library is a collection of routines you’ll use in your code to implement an algorithm. They save you to write the same code again and again (for example you do not need to reinvent the wheel every time you have to print a string to console).

    A language extension is not code that you’ll call (or use) directly from your code but something that will change how you write your programs. It may change (and usually it does) the syntax of the language itself and often it’s a plug-in for the compiler. Many of the features added to the Java language are extension (generics, for example).

    For example Session-Scala is an extensions made of both:

    • a library to manage parallel programming (code you can call directly from your code).
    • a language extension: to make the code you write more clear (what sometimes is called syntactic sugar), it changes the syntax of the language to make the use of its library functions more easy (should I say nice?)

    For an example take a look to this page.

    That said, often with Scala a language extension isn’t really needed (even if it’s so easy to write, more than for .NET languages, for example) because of its syntax. First thing that comes to my mind are infix operators but in general all its syntax for methods invocation makes everything simple to use it as DSL without a DSL.

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

Sidebar

Related Questions

what's the difference between using a js library like jquery and using an ajax
I've observed a difference in behavior between the new library in Visual Studio 11
Whats difference between library EXT-JS , EXT-CORE , EXT-GWT as i have worked on
Could anyone tell me the difference between library and native library in terms of
i wonder what the difference between a library and a plugin is? if a
I just want to know what is the difference between C library and standard
What is the difference between library files and modules in Perl?
What is the difference between static library and relocatable object file? Or between dynamic
What is the difference between Server Library and Class library in Netbeans?
I am trying to use std::atomic library. What's the difference between specialized and non-specialized

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.