• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Is there any java equivalent of .csx files as in C#?  RSS feed

 
Ranch Hand
Posts: 1025
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In C# there is a concept of .csx files. Is there any java equivalent of .csx files as in C#? If not so then why?
 
Saloon Keeper
Posts: 2268
290
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are .csx files, and when are they used with C#?
 
Marshal
Posts: 5633
147
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ron McLeod wrote:What are .csx files, and when are they used with C#?


I don't know much about them, but they appear to be C# script files.

Monica Shiralkar wrote:Is there any java equivalent of .csx files as in C#? If not so then why?


I'm not familiar with how one might use a csx file, but if it's a script, maybe JShell would work.
 
Monica Shiralkar
Ranch Hand
Posts: 1025
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What are .csx files, and when are they used with C#?



I looked at the code for creating an azure function (serverless) . In C# they have mentioned the save it as .csx file (instead of .cs file). However, in java it is saved at .java only.
 
Knute Snortum
Marshal
Posts: 5633
147
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you can save a JShell session as a .jsh file and execute it with JShell, but I'm not sure what this gets you.  What are you trying to accomplish?
 
Bartender
Posts: 20124
103
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I'm not even sure why csx files exist in Windows, much less why anything like them is so important on other OS's.

From the sound of it, a close equivalent might be Groovy.

But in truth, I kind of suspect that a lot of the reason for .csx is that until PowerShell came along, the Windows command shell/scripting environment was very, very feeble.

In contrast, the Unix and Unix-like OS's have always had very powerful shells and a rich set of support tools such as grep, sed, awk, perl, and the like plus frameworks like Tcl. And more recently, Python, among others. Most of these can be acquired for a Windows machine, but in the *n*x OS's, you can consider them as standard and not have to pull them in from third-party sources.
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!